<div class="dish_foto">
  <ul class="category">
	<?php $i=0; foreach($dishes as $catid => $mycats): if($i > 16) break; ?>
    <li><a href="javascript:void(0)" ref="<?=$i;?>"><?=h($dishcat[$catid]['dish_cat_name'] ? $dishcat[$catid]['dish_cat_name'] : '默认分类');?></a></li>
	<?php $i++; endforeach; ?>
  </ul>
  <div class="clear"></div>
  <?php foreach($dishes as $catid => $mycats): ?>
  <div class="menu">
    <h1><?=h($dishcat[$catid]['dish_cat_name'] ? $dishcat[$catid]['dish_cat_name'] : '默认分类');?></h1>
    <ul class="grid">
	<?php foreach($mycats as $dish): ?>
	<li><a href="#"><img src="<? if($dish['picture']){ echo UPLOAD_URL.$dish['picture']; }else{ echo STATIC_URL."/img/nopic.jpg"; } ?>" alt="<?=h($dish['name']);?>"></a><h3 class="rem-icon"><?=h($dish['name']);?></h3>
        <span>￥<?=$dish['price'];?></span> </li>
	<? endforeach; ?>
    </ul>
    <div class="clear"></div>
  </div>
  <?php endforeach; ?>
  <div class="clear"></div>
</div>